package cn.edu.scau.cmi.yangzemin.composite.consistent;

public class ConsistentPerson extends ConsistentOrganization{

	private String name;
	
	public ConsistentPerson(String name) {
		this.name = name;
	}	
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void getTeam(int level) {
		String space=" ";
 	for(int i=0;i<level;i++) {
			space+="  "; 
		}
		System.out.println(space+this.getName());
	}

	@Override
	public void addOrganization(ConsistentOrganization organization) {
		System.out.println(this.getName()+"不是团队，不能添加成员");
	}

	@Override
	public void removeOrganization(ConsistentOrganization organization) {
		System.out.println(this.getName()+"不是团队，不能删除成员");
	}

}